const MS = require("./ms.js")
const User = require("./user.js") //doc
const UserScan = require('./userScan.js')
const Explore = require("./explore.js") //doc
const Goods = require("./goods.js") //doc
const Order = require("./order.js") //doc
const Pay = require("./pay.js")
const Common = require("./common.js") //doc
const ImageText = require('./imageText') //doc
const Media = require('./media') //doc
const MediaLibrary = require('./mediaLibrary') //doc
const GoodsCategory = require('./goodsCategory') //doc
const Banner = require('./banner') //doc
const Seller = require('./seller') //doc
const TagLibrary = require('./tagLibrary') //doc
const Guilds = require('./guilds') //doc
const Note = require('./note')
const NoteLabel = require('./noteLabel')
const Topic = require('./topic') //doc
const SellerAccount = require('./sellerAccount')
const uniUploadFile = require('./uniUploadFile')
const uniUploadFiles = require('./uniUploadFiles')
const Util = require('./util') //doc
const Easemob = require('./easemob')
const Synopsis = require('./synopsis')
const File = require('./file') //doc
const CustomerInfo = require('./customerInfo')
const Employee = require('./employee') //doc
const Ship = require('./ship')
const Member = require('./member') //doc
const DeviceCheckCategory = require('./deviceCheckCategory')
const DeviceCheck = require('./deviceCheck') //doc
const Device = require('./device') //doc
const YachtClub = require('./yachtClub') //doc
const MRO = require('./maintenanceOrganization') //doc
const MRG = require('./maintenanceGroup') //doc
const SysUser = require('./sysUser');
const RepairOrder = require('./repairOrder')
const GoodsConsult = require('./goodsConsult')
const EntryAndExit = require('./entryAndExit')
// 用户对象
MS.User = new User()
MS.UserScan = new UserScan()
MS.Explore = new Explore()
MS.Goods = new Goods()
MS.Order = new Order()
MS.Pay = new Pay()
MS.Common = new Common()
MS.ImageText = new ImageText()
MS.Media = new Media()
MS.MediaLibrary = new MediaLibrary()
MS.GoodsCategory = new GoodsCategory()
MS.Banner = new Banner()
MS.Seller = new Seller()
MS.TagLibrary = new TagLibrary()
MS.Guilds = new Guilds()
MS.Note = new Note()
MS.NoteLabel = new NoteLabel()
MS.Topic = new Topic()
MS.SellerAccount = new SellerAccount()
MS.uniUploadFile = uniUploadFile
MS.uniUploadFiles = uniUploadFiles
MS.Util = new Util()
MS.Easemob = new Easemob()
MS.Synopsis = new Synopsis()
MS.File = new File()
MS.CustomerInfo = new CustomerInfo()
MS.Employee = new Employee()
MS.Ship = new Ship()
MS.Member = new Member()
MS.DeviceCheckCategory = new DeviceCheckCategory()
MS.DeviceCheck = new DeviceCheck()
MS.Device = new Device()
MS.YachtClub = new YachtClub()
MS.MRO = new MRO()
MS.MRG = new MRG()
MS.SysUser = new SysUser()
MS.RepairOrder = new RepairOrder()
MS.GoodsConsult = new GoodsConsult()
MS.EntryAndExit = new EntryAndExit()
//wx.MS = MS
//global.MS = MS
if (MS.type === 'wx') {
    console.info('wx');
    wx.MS = MS
} else if (MS.type === 'h5') {
    console.info('h5');
    window.MS = MS
} else if (MS.type === 'hap') {
    // 快应用功能
    console.info('hap');
    global.MS = MS
} else if (MS.type === 'nodejs') {
    // nodejs
    console.info('nodejs');
    global.MS = MS
} else {
    global.MS = MS
}
module.exports = MS